package com.fjs.service.impl;

import com.fjs.mapper.LoginRecordMapper;
import com.fjs.pojo.LoginRecord;
import com.fjs.service.LoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: LoginRecordServiceImpl
 * @Description:
 * @PACKAGE_NAME：com.fjs.service.impl
 * @Author: 94358 fangjinsen
 * CreateDate: 2022/5/21 20:44
 */
@Service("loginRecordService")
public class LoginRecordServiceImpl implements LoginRecordService {

    @Autowired
    private LoginRecordMapper loginRecordMapper;

    @Override
    public List<LoginRecord> queryLoginRecord(LoginRecord loginRecord) {
        return loginRecordMapper.queryLoginRecord(loginRecord);
    }

    /**
     * 用户登录时提交登录记录
     * @param loginRecord
     * @return
     */
    @Override
    public int insertLR(LoginRecord loginRecord) {
        return loginRecordMapper.insertLR(loginRecord);
    }
}
